package org.dreamwork.jasmine2.web.controls;

import org.dreamwork.jasmine2.web.IWebControl;
import org.dreamwork.jasmine2.engine.HttpContext;
import org.dreamwork.jasmine2.events.EventException;

import java.io.PrintWriter;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: seth
 * Date: 2009-7-28
 * Time: 15:28:31
 */
public class UserControl extends Page {
    public UserControl () {
        htmlTagName = "div";
    }

    @Override
    public void render (PrintWriter writer) throws IOException, EventException {
        super.render (writer);    //To change body of overridden methods use File | Settings | File Templates.
    }

    protected String getIdPrefix () {
        String id = getId ();
        if (id == null || id.startsWith ("_auto_")) return "";
        return id + "_";
    }
}